package com.example.fenye.dao.forum;

import org.apache.ibatis.annotations.Param;

import com.example.fenye.entity.forum.ForumUser;

public interface ForumUserDao {
	Long insertUser(ForumUser user);
	
	String getPassByName(String name);
	
	ForumUser getUserByNamePass(@Param("name") String name, @Param("password") String password);
	
	/**
	 * 根据name查找用户
	 * @param name
	 * @return
	 */
	ForumUser getUserByName(@Param("name") String name);
}
